import { Discount } from 'discount-model.js';

var discount = new Discount();
Page({
  data: {
    currentTab: 0,
    btnChangeok:false
  },
	onLoad: function (options) {
	},
  discountTitleListsTap: function (e) {
    this.setData({
      currentTab: e.currentTarget.dataset.idx
    });
  },
  toWalkTap: function (e) {
    wx.switchTab({
      url: '../../index/index'
    })
  },
  btnChange: function (e) {
    var btn = e.currentTarget.dataset.btnchangeok;
    if (btn){
      this.setData({
        btnChangeok: false
      })
    }else{
      this.setData({
        btnChangeok: true
      })
    }
   
  }
});